package com.cyj.redissign.cyj.controller;

import com.cyj.redissign.cyj.service.SignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class SignController {

    @Autowired
    private SignService signService;

    @GetMapping("/doSign")
    public Map doSign(String name){

        Map map = signService.doSign(name);

        return map;
    }

    @GetMapping("/signList")
    public Map signList(){

        Map map = signService.signList();

        return map;
    }
}
